//
//  AppDelegate+STAppService.m
//  STBasicsApp
//
//  Created by jerry on 2019/5/1.
//  Copyright © 2019 jerry. All rights reserved.
//

#import "AppDelegate+STAppService.h"
#import "STMainTabbarViewController.h"


@implementation AppDelegate (STAppService)

//初始化主题管理
- (void)initDKNightVersion{
    DKNightVersionManager *manager = [DKNightVersionManager sharedManager];
    manager.themeVersion = DKThemeVersionNormal;
}

//初始化TABAnimated
- (void)initTABAnimated{
    // Init `TABAnimated`, and set the properties you need.
    // 初始化TABAnimated，并设置TABAnimated相关属性
    [[TABAnimated sharedAnimated] initWithOnlySkeleton];
    // open log
    // 开启日志
    [TABAnimated sharedAnimated].openLog = YES;
    // set gobal cornerRadius
    [TABAnimated sharedAnimated].useGlobalCornerRadius = YES;
}

//项目主入口
- (void)initAppEnter{
    self.window = [[UIWindow alloc] initWithFrame:[UIScreen mainScreen].bounds];
    self.window.backgroundColor = [UIColor whiteColor];
    STMainTabbarViewController *vc = [[STMainTabbarViewController alloc] init];
    //STBaseNavigationViewController *naVC = [[STBaseNavigationViewController alloc] initWithRootViewController:vc];
    self.window.rootViewController = vc;
    [self.window makeKeyWindow];
}

@end
